package com.common.util.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class ContextInterceptor extends HandlerInterceptorAdapter{
	  public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
			    throws Exception
			  {}
			  
			  public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			    throws Exception
			  {
			    ContextHolder.setRequest(request);
			    return true;
			  }
}
